package com.xayy.health.mgt.model;

import cn.kawins.mybatis.base.BaseModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * 卫星信息
 * @author zhangxa
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "HEALTH.tb_satellite_info")
public class Satellite extends BaseModel<Long> {

    @Id
    @Column(name = "id")
    private Long id;

    @Column(name = "pid")
    @ApiModelProperty(value = "父ID，一级菜单为0")
    private Long pid;

    @Column(name = "name")
    @ApiModelProperty(value = "名称")
    private String name;


    @Column(name = "code")
    @ApiModelProperty(value = "编号")
    private String code;

    @Column(name = "create_time")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @Column(name = "update_time")
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    @Override
    public Long idValue() {
        return id;
    }
}
